import request from '@/utils/request'

// 查询用户分享记录列表
export function listShares(query) {
  return request({
    url: '/system/shares/list',
    method: 'get',
    params: query
  })
}

// 查询用户分享记录详细
export function getShares(shareId) {
  return request({
    url: '/system/shares/' + shareId,
    method: 'get'
  })
}

// 新增用户分享记录
export function addShares(data) {
  return request({
    url: '/system/shares',
    method: 'post',
    data: data
  })
}

// 修改用户分享记录
export function updateShares(data) {
  return request({
    url: '/system/shares',
    method: 'put',
    data: data
  })
}

// 删除用户分享记录
export function delShares(shareId) {
  return request({
    url: '/system/shares/' + shareId,
    method: 'delete'
  })
}
